import java.util.Scanner;

public class ArrayCountTest {
    public static void main(String[] arg){
        //获取到用户输入的正整数，计算出每个数字出现的次数
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] arr = new int[10];
        int temp = num;
        while (temp !=0){
            int item1 = temp%10;
            arr[item1]++;
            temp = temp/10;
        }
        for(int i = 0;i<arr.length;i++){
            System.out.println(arr[i]);
        }
        double num2 = num*1.0;
    }
}
